﻿using System.Collections.Generic;
using NHibernate;

namespace Golf.DataLayer
{
    using Core;

    public class ScorecardRepository : RepositoryBase, IScorecardRepository
    {
        public Scorecard Get(int id)
        {
            using (ISession session = SessionFactory.OpenSession())
            {
                return session.Get<Scorecard>(id);
            }
        }

        public IEnumerable<Scorecard> GetByPlayer(int playerId)
        {
            return null;
        }
    }
}
